package com.qiniu.githubdata.frontend;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private List<T> records; // 当前页的数据列表
    private long total; // 总记录数
    private long page; // 当前页码
    private long size; // 每页显示的记录数

    public PageResult(List<T> records, long total, long page, long size) {
        this.records = records;
        this.total = total;
        this.page = page;
        this.size = size;
    }
}
